package model;



/**
 * Vnews entity. @author MyEclipse Persistence Tools
 */

public class Vnews implements java.io.Serializable {

	// Fields

		private Integer newsid;
		private String newstitle;
		private String newscontant;
		private String newstime;
		private Integer grade;
		private Integer isDel;
		private String photopath;

		// Constructors

		/** default constructor */
		public Vnews() {
		}

		/** minimal constructor */
		public Vnews(Integer newsid) {
			this.newsid = newsid;
		}

		/** full constructor */
		public Vnews(Integer newsid, String newstitle, String newscontant,
				String newstime, Integer grade, Integer isDel, String photopath) {
			this.newsid = newsid;
			this.newstitle = newstitle;
			this.newscontant = newscontant;
			this.newstime = newstime;
			this.grade = grade;
			this.isDel = isDel;
			this.photopath = photopath;
		}

		// Property accessors

		public Integer getNewsid() {
			return this.newsid;
		}

		public void setNewsid(Integer newsid) {
			this.newsid = newsid;
		}

		public String getNewstitle() {
			return this.newstitle;
		}

		public void setNewstitle(String newstitle) {
			this.newstitle = newstitle;
		}

		public String getNewscontant() {
			return this.newscontant;
		}

		public void setNewscontant(String newscontant) {
			this.newscontant = newscontant;
		}

		public String getNewstime() {
			return util.ReturnDate.datetimeFormat(this.newstime);
		}

		public void setNewstime(String newstime) {
			this.newstime = newstime;
		}

		public Integer getGrade() {
			return this.grade;
		}

		public void setGrade(Integer grade) {
			this.grade = grade;
		}

		public Integer getIsDel() {
			return this.isDel;
		}

		public void setIsDel(Integer isDel) {
			this.isDel = isDel;
		}

		public String getPhotopath() {
			return this.photopath;
		}

		public void setPhotopath(String photopath) {
			this.photopath = photopath;
		}

}